package com.zkw.groovy.demo

/**
 * Created by Administrator on 2016/4/8.
 */
class ClosureMain {
    public static void main(String[] args) {
        def closure = {param -> println('hello')}
        closure.call()

        def closure2 = {greeting,name -> println("${greeting}"+name)}
        closure2.call('hello','james')
    }
}
